FROM  hpf/java/jdk:latest


ENV NEXUS_HOME /usr/local/tool/nexus

# 工作目录
ENV PLEXUS_NEXUS_WORK ${NEXUS_HOME}/sonatype-work/

RUN mkdir -pv "${NEXUS_HOME}"


ADD ./toolkit/nexus-3.7.1-02 ${NEXUS_HOME}


WORKDIR ${NEXUS_HOME}

EXPOSE 8081

CMD ["./bin/nexus","run"]
